dic_class = {"托班":["聪聪班","伶伶班","楠楠班"],"小班":["小一班","小二班"],"中班":["中一班","中二班"],"大班":["大一班","大二班"]}
dic_number = {"聪聪班":26,"伶伶班":23,"楠楠班":25,"小一班":32,"小二班":31,"中一班": 33,"中二班":34,"大一班":32,"大二班":33}
total_students = 0
# 遍历dic_class字典，统计每个年级的人数
for grade, classes in dic_class.items():
    grade_total = sum(dic_number[cls] for cls in classes)
    total_students += grade_total
    print(f"{grade}{grade_total}人")

print(f"全园{total_students}人")
